package com.usian.wemedia.service.impl;

import com.usian.model.base.BaseServiceImpl;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.pojos.WmUser;
import com.usian.wemedia.mapper.MediaUserMapper;
import com.usian.wemedia.service.MediaUserService;
import org.springframework.stereotype.Service;

@Service
public class MediaUserServiceImpl extends BaseServiceImpl<MediaUserMapper, WmUser> implements MediaUserService {
    @Override
    public ResponseResult saveMediaUser(WmUser user) {
        if (user == null)return paramError;
        save(user);
        return success(user.getId());
    }
}
